#!/usr/bin/expect -f
spawn telnet 192.168.115.141
expect "login:"
send "root\r"
expect "#"
send "reboot\r"
expect eof
